package com.huohuzhihui.web.controller.api;

import com.huohuzhihui.common.annotation.Log;
import com.huohuzhihui.common.core.controller.BaseController;
import com.huohuzhihui.common.core.domain.AjaxResult;
import com.huohuzhihui.common.core.domain.entity.SysDept;
import com.huohuzhihui.common.enums.BusinessType;
import com.huohuzhihui.common.utils.DateUtils;
import com.huohuzhihui.common.utils.ServletUtils;
import com.huohuzhihui.common.utils.ip.AddressUtils;
import com.huohuzhihui.common.utils.ip.IpUtils;
import com.huohuzhihui.framework.web.service.TokenService;
import com.huohuzhihui.merchant.domain.MerActivityBrowse;
import com.huohuzhihui.merchant.domain.MerCouponActivity;
import com.huohuzhihui.merchant.domain.MerMerchant;
import com.huohuzhihui.merchant.service.IMerActivityBrowseService;
import com.huohuzhihui.merchant.service.IMerCouponActivityService;
import com.huohuzhihui.merchant.service.IMerMerchantService;
import com.huohuzhihui.system.service.ICloudStorageService;
import com.huohuzhihui.system.service.ISysDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *微信api
 * 
 * @author lizhihe
 * @date 2020-11-22
 */
@RestController
@RequestMapping("/api/merchant")
public class ApiMerchantController extends BaseController
{
    @Autowired
    private ISysDeptService sysDeptService;
    /**
     * 查询商户信息
     */
    @Log(title = "查询商户信息", businessType = BusinessType.DELETE)
    @GetMapping("/getMerchant")
    public AjaxResult getMerchant(Long id)
    {
        SysDept sysDept = this.sysDeptService.selectDeptById(id);
        return AjaxResult.success("查询商户信息成功",sysDept);
    }



}
